import Ember from 'ember';

export default Ember.Component.extend({
  classNames: ['piao-you', 'inline-div'],
  internalQ: Ember.computed('q', function(){
    return this.get('q');
  }),
  internalQChanged: Ember.observer('internalQ', function(){
    this.set('qv', this.get('internalQ'));
  }),
  actions: {
    search() {
      console.log(this.get('internalQ'));
      console.log(this.get('q'));
      this.set('q', this.get('internalQ'));
    }
  }
});
